<?php 
if (!InDir("login.php", $_SERVER['PHP_SELF'])) {
	if (!isset($_SESSION["ALLOWRUN"]) || $_SESSION["ALLOWRUN"]=="") {
		header ("Location: ../login.php");
		exit;
	} else {
		if (!isset($_SESSION["UserID"]) || $_SESSION["UserID"]=="") {
			header ("Location: ../login.php");
			exit;
		}
	}
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0048)http://dev.telcom.net/bay_harbor/admin/login.asp -->
<HTML xmlns="http://www.w3.org/1999/xhtml">
<HEAD>
    <TITLE>PHP Template - Administrator Tools</TITLE>
    <META http-equiv="Content-Type" content="text/html; charset=utf-8">
    <LINK href="<?php  echo URL_SITE;?>css/cssofadmin.css" type="text/css" rel="stylesheet">		
    <LINK href="<?php  echo URL_SITE;?>/scripts/flexbox/css/jquery.flexbox.css" type="text/css" rel="stylesheet">		
    <script language="javascript" src="<?php  echo URL_SITE;?>scripts/script.js"></script>
    <script language="javascript" src="<?php  echo URL_SITE;?>scripts/chklist.js"></script>
    <script language="javascript" src="<?php  echo URL_SITE;?>scripts/datetimepicker.js"></script>
    <script language="javascript" src="<?php  echo URL_SITE;?>scripts/jquery.min.js"></script>
    <script language="javascript" src="<?php  echo URL_SITE;?>scripts/flexbox/scripts/jquery.flexbox.js"></script>
</HEAD>
<BODY topmargin="0">
<table cellspacing="0" cellpadding="0" border="0" align="center" width="98%">
	<!--
    <tr>
        <td colspan=3>
            <table border="0" width="100%" cellpadding="0" cellspacing="0">
                <tr>
                    <td width="50%" align="left">
                        <img src="<? echo URL_SITE;?>images/logoadmin.jpg" />
                    </td>
                    <td width="50%" align="right">
                        <img src="<? echo URL_SITE;?>images/title_admin.jpg" />
                    </td>
                </tr>
            </table>
        </td>
    </tr>
    -->
    <tr>
        <td colspan="3" background="<? echo URL_SITE;?>images/space.gif" height="5"></td>
    </tr>
    <tr>
        <td colspan=3 style="background:#7092bf; height:35px; color:#FFF; font-weight:bold" align="right" valign="middle">
                    Welcome <?=$userSess->email?>&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;<a href="<? echo URL_SITE;?>admin/pass/chpsw.php" class="<? echo (InDir("/pass/", $PHP_SELF)?"menuCurrLink":"menuLink");?>">Change Password</a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<? if (InDir("login.php", $PHP_SELF))?><a href="<? echo URL_SITE;?>admin/login.php" class="menuLink">Sign out</a>
          &nbsp;&nbsp;&nbsp;         
        </td>
    </tr>
    <tr>
        <td colspan="3" background="<? echo URL_SITE;?>images/space.gif" height="5"></td>
    </tr>
    <tr>
        <td valign="top" bgcolor="#FFFFFF" align="left" colspan="2">
            <div id="left_admin">
                <div id="box">
                    <div class="title"><a href="<? echo URL_SITE;?>admin/users/list.php" class="<? echo (InDir("/users/", $PHP_SELF)?"menuCurrLink":"menuLink");?>">
                        Users
                    </a></div>
                    <div class="title2">Product</div>
                    <div class="cate_ad">
                        <ul>
                          <li ><a href="<? echo URL_SITE;?>admin/cate/list.php" class="<? echo (InDir("/cate/", $PHP_SELF)?"menuCurrLink":"menuLink");?>">
                                Categories
                            </a></li>
                          <li><a href="<? echo URL_SITE;?>admin/subcate/list.php" class="<? echo (InDir("/subcate/", $PHP_SELF)?"menuCurrLink":"menuLink");?>">
                                Sub Categories
                            </a></li>
                          <li><a href="<? echo URL_SITE;?>admin/products/list.php" class="<? echo (InDir("/products/", $PHP_SELF)?"menuCurrLink":"menuLink");?>">
                                Products
                            </a></li>
                        </ul>
                    </div>
				</div>
                <br>
            </div>	
        <br />
        <img src="<? echo URL_SITE;?>images/space.gif" width="0" id="imgMain">			
        </td>
        <td valign="top" width="100%" align="center" style="padding-left:0px">